package com.qx.po;
import java.util.Date;

//(pno,eno,pquantity,psunprice,ptime,ptips)
public class Purchase {
	private String pno;
    private String eno;
    private int pquantity;
    private String psunprice;       
    //查到了NUMERIC对应数据类型BigDecimal，但是BigDecimal教程上面不建议使用，而且二两小数的加减乘法位数都不会变，所以还用String。
    private Date ptime;
    private String ptips;
	public String getPno() {
		return pno;
	}
	public void setPno(String pno) {
		this.pno = pno;
	}
	public String getEno() {
		return eno;
	}
	public void setEno(String eno) {
		this.eno = eno;
	}
	public int getPquantity() {
		return pquantity;
	}
	public void setPquantity(int pquantity) {
		this.pquantity = pquantity;
	}
	public String getPsunprice() {
		return psunprice;
	}
	public void setPsunprice(String psunprice) {
		this.psunprice = psunprice;
	}
	public Date getPtime() {
		return ptime;
	}
	public void setPtime(Date ptime) {
		this.ptime = ptime;
	}
	public String getPtips() {
		return ptips;
	}
	public void setPtips(String ptips) {
		this.ptips = ptips;
	}
	@Override
	public String toString() {
    return "Purchase:[pno=" + pno + ", eno=" + eno + ", pquantity=" + pquantity
            + ", psunprice=" + psunprice + ", ptime=" + ptime +  ", ptips=" + ptips + "]";
	}
}